Optimal. Leaf size=36 \[ \frac{a (a x+b)^4}{20 b^2 x^4}-\frac{(a x+b)^4}{5 b x^5} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0071368, antiderivative size = 36, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 13, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.231, Rules used = {263, 45, 37} \[ \frac{a (a x+b)^4}{20 b^2 x^4}-\frac{(a x+b)^4}{5 b x^5} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 263
Rule 45
Rule 37
Rubi steps
\begin{align*} \int \frac{\left (a+\frac{b}{x}\right )^3}{x^3} \, dx &=\int \frac{(b+a x)^3}{x^6} \, dx\\ &=-\frac{(b+a x)^4}{5 b x^5}-\frac{a \int \frac{(b+a x)^3}{x^5} \, dx}{5 b}\\ &=-\frac{(b+a x)^4}{5 b x^5}+\frac{a (b+a x)^4}{20 b^2 x^4}\\ \end{align*}
Mathematica [A] time = 0.0057052, size = 41, normalized size = 1.14 \[ -\frac{a^2 b}{x^3}-\frac{a^3}{2 x^2}-\frac{3 a b^2}{4 x^4}-\frac{b^3}{5 x^5} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.004, size = 36, normalized size = 1. \begin{align*} -{\frac{{a}^{2}b}{{x}^{3}}}-{\frac{{b}^{3}}{5\,{x}^{5}}}-{\frac{3\,{b}^{2}a}{4\,{x}^{4}}}-{\frac{{a}^{3}}{2\,{x}^{2}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 0.981638, size = 47, normalized size = 1.31 \begin{align*} -\frac{10 \, a^{3} x^{3} + 20 \, a^{2} b x^{2} + 15 \, a b^{2} x + 4 \, b^{3}}{20 \, x^{5}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.40144, size = 81, normalized size = 2.25 \begin{align*} -\frac{10 \, a^{3} x^{3} + 20 \, a^{2} b x^{2} + 15 \, a b^{2} x + 4 \, b^{3}}{20 \, x^{5}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.365585, size = 37, normalized size = 1.03 \begin{align*} - \frac{10 a^{3} x^{3} + 20 a^{2} b x^{2} + 15 a b^{2} x + 4 b^{3}}{20 x^{5}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.12576, size = 47, normalized size = 1.31 \begin{align*} -\frac{10 \, a^{3} x^{3} + 20 \, a^{2} b x^{2} + 15 \, a b^{2} x + 4 \, b^{3}}{20 \, x^{5}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]